package com.verisette.ncos.persistence.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;

/**
 * {Description here}
 *
 * @author Thippawan Muangchu (Tip)
 * @since Apr 2, 2010 4:33:14 PM
 * @version 1.0.0
 * @see 
 */
public class CustomMasterObjectAuthByUsgId implements Serializable {
	private static final long serialVersionUID = 1L;

	
	@Id
	@Column(name="OBJ_ID")
	private String objId;
	
	@Id
	@Column(name="OAG_ID")
	private Integer oagId;

	
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((oagId == null) ? 0 : oagId.hashCode());
		result = prime * result + ((objId == null) ? 0 : objId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CustomMasterObjectAuthByUsgId other = (CustomMasterObjectAuthByUsgId) obj;
		if (oagId == null) {
			if (other.oagId != null)
				return false;
		} else if (!oagId.equals(other.oagId))
			return false;
		if (objId == null) {
			if (other.objId != null)
				return false;
		} else if (!objId.equals(other.objId))
			return false;
		return true;
	}

	public String getObjId() {
		return objId;
	}

	public void setObjId(String objId) {
		this.objId = objId;
	}

	public Integer getOagId() {
		return oagId;
	}

	public void setOagId(Integer oagId) {
		this.oagId = oagId;
	}
	
	
}
